<template>
  <div class="col-xs-offset-2 col-xs-8">
    <div class="page-header">
      <h2>Vue Router Demo</h2>
      <button type="button" class="btn btn-default btn-xs" @click="back">后退</button>
      <button type="button" class="btn btn-primary btn-xs" @click="forward">前进</button>
      <button type="button" class="btn btn-danger btn-xs" @click="go">前进好几步</button>
    </div>
  </div>
</template>

<script>
export default {
  name: "Banner",
  methods: {
    back() {
      this.$router.back();
    },
    forward() {
      this.$router.forward();
    },
    go() {
      this.$router.go(3);
    }
  }
}
</script>

<style scoped>

</style>